import request from "@/utils/request";

// 查询保存图列表
export function listImages(query) {
  return request({
    url: "/system/images/list",
    method: "get",
    params: query,
  });
}

// 查询保存图详细
export function getImages(id) {
  return request({
    url: "/system/images/" + id,
    method: "get",
  });
}

// 新增保存图
export function addImages(data) {
  return request({
    url: "/system/images",
    method: "post",
    data: data,
  });
}

// 修改保存图
export function updateImages(data) {
  return request({
    url: "/system/images",
    method: "put",
    data: data,
  });
}

// 删除保存图
export function delImages(id) {
  return request({
    url: "/system/images/" + id,
    method: "delete",
  });
}
